<template>
    <div class="build-video">
        <video :src="src" controls :poster="poster" preload></video>
    </div>
</template>
<script>
export default {
    props:{
        poster:[String],
        src:[String],
    }
}
</script>
<style lang="less" scoped>
.build-video{
    width: 100%;
    height: 220px;
    border-radius: 5px;
    overflow: hidden;
    video{
        width: 100%;
    height: 220px;
        object-fit:cover
    }
}
</style>